Repository navigation
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against f28cde0f1f:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
guest_font_testsbuilt cleanly. - CTest (
guest_font_interface_contracts,guest_font,guest_font_scissor,guest_font_output_pointers,guest_font_renderer_lifecycle,guest_font_writing_metrics,guest_font_vertical_layout,guest_font_metrics,guest_font_style_information,guest_font_style_frame,guest_font_outline_profile,guest_font_writing_line,guest_font_graphics,guest_font_words,guest_font_rebind_renderer,guest_font_support,guest_font_render_characters,guest_font_ft_backoff,guest_font_gs_gnm,guest_font_gs_agc):10/20 Test #3260: guest_font_style_information ..... Passed 0.03 sec 11/20 Test #3250: guest_font_interface_contracts ... Passed 0.03 sec 12/20 Test #3268: guest_font_words ................. Passed 0.03 sec 13/20 Test #3259: guest_font_metrics ............... Passed 0.03 sec 14/20 Test #3269: guest_font_rebind_renderer ....... Passed 0.02 sec 15/20 Test #3270: guest_font_support ............... Passed 0.04 sec 16/20 Test #3257: guest_font_vertical_layout ....... Passed 0.03 sec 17/20 Test #3262: guest_font_outline_profile ....... Passed 0.03 sec 18/20 Test #3263: guest_font_writing_line .......... Passed 0.04 sec 19/20 Test #3261: guest_font_style_frame ........... Passed 0.04 sec 20/20 Test #3273: guest_font_ft_backoff ............ Passed 0.21 sec 80% tests passed, 4 tests failed out of 20The following tests FAILED: - Note: the AI-assisted checkbox can stay.
Requesting changes for the points above.
f28cde0 to
35b5afa
Compare
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 35b5afaf49:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
guest_font_testsfailed to build.ftbase.c:(.text+0x73c8): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x74c8): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x75c8): undefined reference to `FT_Stream_Open' /usr/bin/ld: 3rdparty/freetype/libfreetype.a(ftbase.c.o):ftbase.c:(.text+0xe495): more undefined references to `FT_Stream_Open' follow ftinit.c:(.text+0x1fc): undefined reference to `FT_New_Memory' /usr/bin/ld: ftinit.c:(.text+0x23c): undefined reference to `FT_Done_Memory' ftinit.c:(.text+0x276): undefined reference to `FT_Done_Memory' collect2: error: ld returned 1 exit status ftbase.c:(.text+0x1bb7): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x24c7): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x73c8): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x74c8): undefined reference to `FT_Stream_Open' - Note: the AI-assisted checkbox can stay.
Requesting changes for the points above.
35b5afa to
2b26753
Compare
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 2b26753ba5:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
guest_font_testsbuilt cleanly. - CTest (
guest_font_interface_contracts,guest_font,guest_font_scissor,guest_font_output_pointers,guest_font_renderer_lifecycle,guest_font_writing_metrics,guest_font_vertical_layout,guest_font_metrics,guest_font_style_information,guest_font_style_frame,guest_font_outline_profile,guest_font_writing_line,guest_font_graphics,guest_font_words,guest_font_rebind_renderer,guest_font_support,guest_font_render_characters,guest_font_ft_backoff,guest_font_gs_gnm,guest_font_gs_agc):10/20 Test #3271: guest_font_support ............... Passed 0.02 sec 11/20 Test #3272: guest_font_render_characters ..... Passed 0.03 sec 12/20 Test #3251: guest_font_interface_contracts ... Passed 0.03 sec 13/20 Test #3257: guest_font_writing_metrics ....... Passed 0.02 sec 14/20 Test #3256: guest_font_renderer_lifecycle .... Passed 0.03 sec 15/20 Test #3263: guest_font_outline_profile ....... Passed 0.03 sec 16/20 Test #3258: guest_font_vertical_layout ....... Passed 0.03 sec 17/20 Test #3261: guest_font_style_information ..... Passed 0.04 sec 18/20 Test #3260: guest_font_metrics ............... Passed 0.04 sec 19/20 Test #3262: guest_font_style_frame ........... Passed 0.03 sec 20/20 Test #3274: guest_font_ft_backoff ............ Passed 0.22 sec 80% tests passed, 4 tests failed out of 20The following tests FAILED: - Note: the AI-assisted checkbox can stay.
Requesting changes for the points above.
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
2b26753 to
20fb948
Compare
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 20fb9486f7:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
guest_font_testsbuilt cleanly. - CTest (
guest_font_interface_contracts,guest_font,guest_font_scissor,guest_font_output_pointers,guest_font_renderer_lifecycle,guest_font_writing_metrics,guest_font_vertical_layout,guest_font_metrics,guest_font_style_information,guest_font_style_frame,guest_font_outline_profile,guest_font_writing_line,guest_font_graphics,guest_font_words,guest_font_rebind_renderer,guest_font_support,guest_font_render_characters,guest_font_ft_backoff,guest_font_gs_gnm,guest_font_gs_agc):10/20 Test #3279: guest_font_support ............... Passed 0.02 sec 11/20 Test #3273: guest_font_graphics ..............***Exception: Numerical 0.85 sec 12/20 Test #3259: guest_font_interface_contracts ... Passed 0.03 sec 13/20 Test #3264: guest_font_renderer_lifecycle .... Passed 0.03 sec 14/20 Test #3265: guest_font_writing_metrics ....... Passed 0.05 sec 15/20 Test #3268: guest_font_metrics ............... Passed 0.05 sec 16/20 Test #3269: guest_font_style_information ..... Passed 0.05 sec 17/20 Test #3271: guest_font_outline_profile ....... Passed 0.06 sec 18/20 Test #3266: guest_font_vertical_layout ....... Passed 0.05 sec 19/20 Test #3262: guest_font_scissor ...............Subprocess aborted***Exception: 0.49 sec 20/20 Test #3282: guest_font_ft_backoff ............ Passed 0.23 sec 75% tests passed, 5 tests failed out of 20The following tests FAILED: - Note: the AI-assisted checkbox can stay.
Requesting changes for the points above.
20fb948 to
e29db64
Compare
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e29db647cd:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
guest_font_testsbuilt cleanly. - CTest (
guest_font_interface_contracts,guest_font,guest_font_scissor,guest_font_output_pointers,guest_font_renderer_lifecycle,guest_font_writing_metrics,guest_font_vertical_layout,guest_font_metrics,guest_font_style_information,guest_font_style_frame,guest_font_outline_profile,guest_font_writing_line,guest_font_graphics,guest_font_words,guest_font_rebind_renderer,guest_font_support,guest_font_render_characters,guest_font_ft_backoff,guest_font_gs_gnm,guest_font_gs_agc):10/20 Test #3273: guest_font_renderer_lifecycle .... Passed 0.02 sec 11/20 Test #3288: guest_font_support ............... Passed 0.02 sec 12/20 Test #3292: guest_font_gs_gnm ................***Exception: Numerical 0.63 sec 13/20 Test #3279: guest_font_style_frame ........... Passed 0.02 sec 14/20 Test #3287: guest_font_rebind_renderer ....... Passed 0.02 sec 15/20 Test #3268: guest_font_interface_contracts ... Passed 0.03 sec 16/20 Test #3286: guest_font_words ................. Passed 0.02 sec 17/20 Test #3281: guest_font_writing_line .......... Passed 0.03 sec 18/20 Test #3272: guest_font_output_pointers ....... Passed 0.03 sec 19/20 Test #3293: guest_font_gs_agc ................***Exception: Numerical 0.37 sec 20/20 Test #3291: guest_font_ft_backoff ............ Passed 0.22 sec 85% tests passed, 3 tests failed out of 20The following tests FAILED: - Note: the AI-assisted checkbox can stay.
Requesting changes for the points above.
e29db64 to
e24a29d
Compare
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e24a29de99:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
guest_font_testsbuilt cleanly. - CTest (
guest_font_interface_contracts,guest_font,guest_font_scissor,guest_font_output_pointers,guest_font_renderer_lifecycle,guest_font_writing_metrics,guest_font_vertical_layout,guest_font_metrics,guest_font_style_information,guest_font_style_frame,guest_font_outline_profile,guest_font_writing_line,guest_font_graphics,guest_font_words,guest_font_rebind_renderer,guest_font_support,guest_font_render_characters,guest_font_ft_backoff,guest_font_gs_gnm,guest_font_gs_agc):10/20 Test #3291: guest_font_vertical_layout ....... Passed 0.03 sec 11/20 Test #3294: guest_font_style_information ..... Passed 0.04 sec 12/20 Test #3287: guest_font_scissor ............... Passed 0.04 sec 13/20 Test #3302: guest_font_words ................. Passed 0.04 sec 14/20 Test #3295: guest_font_style_frame ........... Passed 0.03 sec 15/20 Test #3296: guest_font_outline_profile ....... Passed 0.03 sec 16/20 Test #3297: guest_font_writing_line .......... Passed 0.04 sec 17/20 Test #3284: guest_font_interface_contracts ... Passed 0.03 sec 18/20 Test #3293: guest_font_metrics ............... Passed 0.03 sec 19/20 Test #3288: guest_font_output_pointers ....... Passed 0.03 sec 20/20 Test #3298: guest_font_graphics ..............***Exception: Numerical 0.46 sec 85% tests passed, 3 tests failed out of 20The following tests FAILED: - Note: the AI-assisted checkbox can stay.
Requesting changes for the points above.
e24a29d to
e2042ad
Compare
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e2042adebf:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
guest_font_testsfailed to build.ftbase.c:(.text+0x73c8): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x74c8): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x75c8): undefined reference to `FT_Stream_Open' /usr/bin/ld: 3rdparty/freetype/libfreetype.a(ftbase.c.o):ftbase.c:(.text+0xe495): more undefined references to `FT_Stream_Open' follow ftinit.c:(.text+0x1fc): undefined reference to `FT_New_Memory' /usr/bin/ld: ftinit.c:(.text+0x23c): undefined reference to `FT_Done_Memory' ftinit.c:(.text+0x276): undefined reference to `FT_Done_Memory' collect2: error: ld returned 1 exit status ftbase.c:(.text+0x1bb7): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x24c7): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x73c8): undefined reference to `FT_Stream_Open' ftbase.c:(.text+0x74c8): undefined reference to `FT_Stream_Open' - Note: the AI-assisted checkbox can stay.
Requesting changes for the points above.
Linux check of head
|
| Linux | |
|---|---|
| Setup | Ubuntu 24.04.4 LTS (WSL2), GCC 13 |
| Build | clean |
| Passed | 104 of 105 |
| Failed | 1 |
| Not run (executable missing or test disabled) | 0 |
| Failures caused by this PR | 0 |
| Counter-check | 0 of 20 tests fail without the change |
| Conventions | pass |
| Time | 2 min |
| Tests that ran | Linux |
|---|---|
guest_freetype_* |
33 of 34 |
guest_font_* |
20 of 20 |
guest_dinkumware_* |
13 of 13 |
guest_kernel_* |
10 of 10 |
guest_jxr_* |
7 of 7 |
guest_libressl_* |
4 of 4 |
font_face_* |
3 of 3 |
guest_libressl3_* |
2 of 2 |
| 10 other group(s) | 12 of 12 |
1 failed test(s) that also fail on main (not caused by this PR)
guest_freetype_ot_patched
Only tests that depend on the files this PR changes were run. A test counts against the PR only if it passes on main. Numbers come from ctest; the text is generated by a script.
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e2042adebf:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
guest_font_testsbuilt cleanly. - CTest (
guest_font):1/1 Test #3388: guest_font ....................... Passed 0.04 sec 100% tests passed, 0 tests failed out of 1 - Negative control: with
core/libs/prx/libSceFont/src/Style.cppreverted tomainand the new tests kept, the suite fails:Restoring the change makes it pass again.1/1 Test #3388: guest_font .......................***Exception: SegFault 0.49 sec 0% tests passed, 1 tests failed out of 1 - Code reading:
- Verified core/libs/prx/libSceFont/src/Style.cpp: ResetWeightOutputs uses CopyOutGuest for weightXScale, weightYScale, and mode instead of raw pointer dereferences.
- Verified core/libs/prx/libSceFont/src/Style.cpp: sceFontGetRenderEffectWeight checks fontHandle and renderer state first via ReadRenderStyle, rejects all-null output pointers with SCE_FONT_ERROR_INVALID_PARAMETER, reads into stack locals under lock, resets outputs via ResetWeightOutputs on error, and copies out via CopyOutGuest while preserving errno.
- Verified partial-write and unwritable-pointer behavior in sceFontGetRenderEffectWeight matches existing libSceFont conventions (such as sceFontGetResolutionDpi) and is documented in docs/dev/debt/libSceFont.md.
- Verified core/libs/tests/GuestFont.cpp exercises invalid font handle with unwritable pointer, all-null output pointers, and unwritable weightXScale, weightYScale, and mode pointers with errno preservation.
- Verified mechanical gates: tools/check_conventions.py passed, guest_font_tests built and passed, and negative control confirmed the new tests fail when the change is reverted.
Looks Good To Me
e2042ad to
62a68a5
Compare
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
- Reviewed head
62a68a5f7d7175c41370027aa77978fd2ed6df20and its prepared diff. No test or build commands were run. - Read
review/description.md,review/commits.md,review/manifest.json,review/diff.patch, and all three changed files listed in the manifest. Targeted context read:Style.cpp,FontInternal.hpp,State.cpp, andGuestFont.cpp.review/files.jsonwas unavailable through the reader; the manifest shows all changed files were included.
Results
| Check | Result | Note |
|---|---|---|
| Patch logic review | passed | Outputs copied after releasing the style lock |
| Tests/build | not run | Author reports guest font tests passed |
Findings
Blocking
None.
Non-blocking
- If one output pointer is unwritable after earlier outputs have been copied, the function returns
SCE_FONT_ERROR_INVALID_PARAMETERwith earlier outputs already modified. This partial-write behavior may be acceptable for independent output pointers; consider documenting or testing it if callers depend on atomic output updates. The added tests verify failure anderrnopreservation, but do not assert the state of the other outputs.
Not verified
- Test and build results were not independently verified; the test pass is reported in the PR description.
- Console behavior for unmapped output pointers is explicitly unmeasured in the added debt note.
files.jsoncould not be read. All changed files marked included in the manifest were read.
To get this to a good state
Nothing is required. The partial-write behavior is optional feedback.
Plyxen
left a comment
There was a problem hiding this comment.
I read the diff at 62a68a5f7d. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), applied onto main at c1593e4e1dd together with other open PRs (so not an isolated build).
guest_font: pass on both.- Control on Windows (the same tree and tests, with only this PR's source change taken out): it fails.
Not checked: a title.
AI-assisted: yes (Claude Code)
ligmaSec
left a comment
There was a problem hiding this comment.
On Linux, CTest passed guest_font, guest_font_output_pointers, and guest_font_output_pointers_watched with this revision integrated. The added weight tests cover the invalid-handle error, all outputs omitted, and preserving errno when individual output writes fail.
AI-assisted: yes.
What
Safely copy out render weight scale and mode in
sceFontGetRenderEffectWeightviaCopyOutGuest, preserving callererrnoand returningSCE_FONT_ERROR_INVALID_PARAMETERif destination pointers are unwritable.Tested
Checklist